﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace LightSwitchApplication
{
    public partial class Task
    {
        partial void State_Compute(ref string result)
        {
            if (this.PercentageComplete <= 100)
            {
                result = "未完成";
            }
            else
            {
                result = "已完成";
            }
        }

        partial void Summary_Compute(ref string result)
        {
            result = String.Format("{0}({1})",this.Name,this.State);
        }
    }
}
